-- GENERATED SPELL FOR [Stonesplinter Geomancer] --


function spell0_1165(pUnit, Event) --@Flamestrike,n/a--
pUnit:FullCastSpellOnTarget(2120,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1165', 10000, 1)
end

function spell1_1165(pUnit, Event) --@Quick Flame Ward,n/a--
pUnit:FullCastSpellOnTarget(4979,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1165', 11500, 1)
end

function Sorts_1165(pUnit, Event)
local choix_sorts_1165 = math.random(0, 1)
if choix_sorts_1165 == 0 then
pUnit:RegisterEvent('spell0_1165', 1, 1)
end
if choix_sorts_1165 == 1 then
pUnit:RegisterEvent('spell1_1165', 1, 1)
end
end

function mob1165_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1165', math.random(1500, 3000), 1)
end

function mob1165_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1165_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1165_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1165, 1, 'mob1165_Action')
RegisterUnitEvent(1165, 2, 'mob1165_Leave')
RegisterUnitEvent(1165, 3, 'mob1165_Kill')
RegisterUnitEvent(1165, 4, 'mob1165_Die')
